package server

import (
	"go-programming-tour-book/chatroom/logic"
	"net/http"
)

var rootDir string

// RegisterHandle 注册（登记）
func RegisterHandle() {
	//广播消息处理
	go logic.Broadcaster.Start()

	http.HandleFunc("/", homeHandleFunc)
	http.HandleFunc("/ws", WebSocketHandleFunc)
}
